{if $smarty.post and $smarty.session.login}
	
	{$config.body_success}
	
{else}
	
	{if $smarty.post}
		{$config.body_error}
	{else}
		{$config.body_intro}
	{/if}
	
	<form action="{$smarty.server.REQUEST_URI}" method="post" class="form">
		<input type="hidden" name="page" value="{$smarty.request.page|escape:"html":"UTF-8"}" id="page" />
		<p>
			<label for="{$config.user_field|escape:"html":"UTF-8"}">{$config.user_label|escape:"html":"UTF-8"}</label>
			<input type="text" name="login[{$config.user_field|escape:"html":"UTF-8"}]" value="{$smarty.request.login[$config.user_field]}" id="{$config.user_field}" class="text" />
		</p>
		<p>
			<label for="password">{$config.password_label|escape:"html":"UTF-8"}</label>
			<input type="password" name="login[password]" value="{$smarty.request.password}" id="password" class="text" />
		</p>
		<p>
			<input type="submit" name="login-button" value="{$config.login_label|escape:"html":"UTF-8"}" class="button" />
		</p>
	</form>
	
{/if}
